package com.easyhuan.action;

import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class LogoutAction extends ActionSupport {

	// 用户退出
	public String logout() throws Exception {

		HttpSession session = ServletActionContext.getRequest().getSession();
		session.removeAttribute("currUser");
		return SUCCESS;
	}
}
